﻿@page "/components/swipearea"

<DocsPage>
    <DocsPageHeader Title="Swipe area">
        <Description>Note: these examples only work on devices where touch events are supported.</Description>
    </DocsPageHeader>
    <DocsPageContent>

        <DocsPageSection>
            <SectionHeader Title="Swipe directions">
                <Description>Swipe your finger in different directions to see how the component works.</Description>
            </SectionHeader>
            <SectionContent DarkenBackground="true" Code="SwipeDirectionsExample">
                <SwipeDirectionsExample />
            </SectionContent>
        </DocsPageSection>
        
        <DocsPageSection>
            <SectionHeader Title="Prevent default browser behavior">
                <Description>Browser will not scroll when <CodeInline>PreventDefault</CodeInline> is set to <CodeInline>true</CodeInline>.</Description>
            </SectionHeader>
            <SectionContent DarkenBackground="true" Code="SwipeDirectionsPreventDefaultExample">
                <SwipeDirectionsPreventDefaultExample />
            </SectionContent>
        </DocsPageSection>

        <DocsPageSection>
            <SectionHeader Title="Drawer Example">
                <Description></Description>
            </SectionHeader>
            <SectionContent DarkenBackground="true" Code="SwipeDrawerExample" ShowCode="false">
                <SwipeDrawerExample />
            </SectionContent>
        </DocsPageSection>

        <DocsPageSection>
            <SectionHeader Title="DatePicker Example">
                <Description></Description>
            </SectionHeader>
            <SectionContent DarkenBackground="true" Code="SwipeDatePickerExample" ShowCode="false">
                <SwipeDatePickerExample />
            </SectionContent>
        </DocsPageSection>

    </DocsPageContent>
</DocsPage>
